using System;
using System.Collections.Generic;
using System.Text;
using AntEater.ComponentModel.BuildElements;
using AntEater.ComponentModel;

namespace AntEater.Runtime.Services.Transformation
{

    /// <summary>
    /// Defines an Error occured by an BuildElement Transformation.
    /// </summary>
    public class TransformationError:Message
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="T:TransformationError"/> class.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <param name="buildElement">The build element.</param>
        public TransformationError(string text, IBuildElement buildElement)
            :this(text,MessageType.Error,buildElement) {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="T:TransformationError"/> class.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <param name="type">The type.</param>
        /// <param name="buildElement">The build element.</param>
        public TransformationError(string text, MessageType type, IBuildElement buildElement)
            :base(text,type,MessageCategory.Transformation,buildElement){
        }
    }
}
